import request from '@/utils/request';

// 查询网端总览路径图
export function getItRoad(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/netPerformanceAnalysis/getItRoad',
		method: 'post',
		data: data,
	});
}

// 修改网端坐标
export function updateComponentInfo(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/netTopology/updateComponentInfo',
		method: 'post',
		data: data,
	});
}

// 查询组件详情
export function componentDetail(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/netPerformanceAnalysis/componentDetail',
		method: 'post',
		data: data,
	});
}

// 查询IP对列表
export function ipList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/netPerformanceAnalysis/ipList',
		method: 'post',
		data: data,
	});
}
